package Object类.equals方法.test03;

public class Test03 {
    public static void main(String[] args) {
        Student s1 = new Student(12345,"李四");
        Student s2 = new Student(12345,"李四");
        System.out.println(s1.equals(s2));



        String a = "1234";
        String b = new String("1234");
        System.out.println(a == b);
        System.out.println(a.equals(b));
    }
}
